package com.itchen.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author げっしょく
 * @date 2021/9/18
 */


@Component
@ConfigurationProperties(prefix = "user1")
public class User {
    private String name;

    private String age;

    private String[] hibble;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String[] getHibble() {
        return hibble;
    }

    public void setHibble(String[] hibble) {
        this.hibble = hibble;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", hibble=" + Arrays.toString(hibble) +
                '}';
    }
}
